package com.object.module.deom2.service.impl;

import java.util.Map;
import java.util.List;
import com.object.utils.MyQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.object.utils.Q;
import org.springframework.stereotype.Service;
import com.object.module.deom2.service.DeomService;
import com.object.module.deom2.mapper.DeomMapper;
import com.object.module.deom2.bean.Deom;


/**
* deom
*
**/
@Service
public class DeomServiceImpl extends ServiceImpl<DeomMapper, Deom> implements DeomService
{
@Override
public Q<List<Deom>> listPage(Map<String, Object> params,Boolean isPage)
    {
        MyQueryWrapper<Deom> wrapper = new MyQueryWrapper<>(params, Deom.class);
        QueryWrapper<Deom> queryWrapper = wrapper.ConstructQuery();
        if (isPage) {
                  return wrapper.pageResponse(this, queryWrapper);
        }
           return new Q<List<Deom>>().ok(list(queryWrapper));
    }
}
